Note: The smartpqi driver included in Debian 10 is sufficient to install
      the OS without using the steps below to inject an out-of-box driver.
      Once the OS is installed, then the smartpqi DKMS deb package should
      be installed to update to the latest available driver.

This procedure installs the smartpqi driver while installing Debian Server 10.0 64bit

1. Copy "smartpqi.ko" to a floppy disk or USB flash.

2. Boot system from the Debian DVD.

3. Type "e" to edit the boot entry

4. Skip: It is no longer necessary to blacklist the aacraid driver for 
   installing on debian 9.0 or newer.

5. Press CTRL+X to boot installation

6. Continue with installation until "Configure the network"

7. Press CTRL+ALT+F2 to switch to console.

8. Insert your USB key or floopy disk

9. fdisk -l   (scan for device, assume if USB drive is assigned to /dev/sda1)

10. Type the following commands:
   # mkdir /mnt  /SMARTPQI
   # mount -t vfat /dev/sda1 /mnt
   # cp -R /mnt/* /SMARTPQI
   # umount /mnt

11. *** Remove the USB drive now ***

12. Copy driver to /lib/modules, unload inbox driver and load new driver module:
   # mkdir -p /lib/modules/4.19.0-5-amd64/kernel/drivers/scsi/smartpqi 
   # cp -f /SMARTPQI/smartpqi.ko /lib/modules/4.19.0-5-amd64/kernel/drivers/scsi/smartpqi/smartpqi.ko
   # depmod -a `uname -r`
   # rmmod smartpqi
   # modprobe smartpqi

13. Press CTRL+ALT+F5 to return to installer. Continue the installation as usual. !!! READ STEP 14 NOW !!!

14. When prompted to reboot the system , press CTRL+ALT+F2 to switch to console.

15. Type the following commands to complete the driver installation:
   # mkdir -p /target/lib/modules/4.19.0-5-amd64/kernel/drivers/scsi/smartpqi
   # cp -f /SMARTPQI/smartpqi.ko /target/lib/modules/4.19.0-5-amd64/kernel/drivers/scsi/smartpqi/smartpqi.ko
   # chroot /target
   # /sbin/depmod -a `uname -r`
   # update-initramfs -u -v
   # exit

16. Press CTRL+ALT+F5 to return to the installer. 

17. Reboot to complete the installation.
